package com.d0325;

import java.text.MessageFormat;

public class TestMessageFormat {
    public static void main(String[] args) {
        String patten="{0}您好，应付金额是{1}";
        System.out.println(MessageFormat.format(patten,new Object[]{"Alice",123}));
        System.out.println(MessageFormat.format(patten,new Object[]{"Lily",123}));

    }
}
